<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="x"%>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>购物车</title>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/css/base.css">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/layui-v2.6.8/layui/css/layui.css">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/layui-v2.6.8/layui/css/layui.css"  media="all">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/css/common.css">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/css/cart.css">
    <script src="${pageContext.request.contextPath}/static/layui-v2.6.8/layui/layui.js" charset="utf-8"></script>
    <script src="${pageContext.request.contextPath}/static/js/cart.js"></script>
</head>
<body>
    <!-- 顶部导航 -->
    <div class="header">
    <div class="w">
        <div class="logo fl"><a href="${pageContext.request.contextPath}/selectGoods">LOGO</a></div>
        <div class="search">
            <input type="text" name="" class="text" placeholder="请输入">
            <button class="btn"><i class="layui-icon layui-icon-search"></i></button>
        </div>
        <div class="r_box fr">
            <a href="${pageContext.request.contextPath}/lookCart"><i class="layui-icon layui-icon-cart-simple"></i></a>
            <!--<span class="r_box_login">亲，请 <a href="#">登录</a></span>-->
            <span class="r_box_login"> <a href="${pageContext.request.contextPath}/allOrder">${user.username}</a></span>
        </div>
    </div>
</div>
    <!--购物车-->
    <div class="cart w">
        <div class="cart_title">
            <span class="cart_til fl">购物车</span>
            <span class="cart_manger fr"><a href="${pageContext.request.contextPath }/lookCart2">管理</a></span>
        </div>
        <div class="cart_info">
            <form action="#">
                <ul class="cart_items">
                	<x:forEach items="${cart}" var="cart">
                    <!--<input type="checkbox" name="cart_item">-->
                    <li class="cart_item">
                        <input type="checkbox" name="cart_id" value="${cart.cart_id}" class="cart_inp fl"/>
                        <a href="#" class="img fl"><img src="${pageContext.request.contextPath }/${cart.url}" alt="" class="cart_item_pic"></a>
                        <div class="message">
                            <p ><a href="#">${cart.product}</a></p>
                            <p>尺寸<span>${cart.size}</span></p>
                        </div>
                        <div class="counter fl">
                            <span class="add">+</span>
                            <!--<span class="count">1</span>-->
                            <input type="text" class="count" value="1">
                            <span class="sub">-</span>
                        </div>
                        <div class="cart_item_price fl">￥
                            <span class="cprice" data-price="120">${cart.price}</span>
                        </div>
                    </li>
                    </x:forEach>
                </ul>
                  <div class="cartBar fr">
                    <div class="total">
                        总计：<i>￥</i>  <span class="total_price">0</span>
                    </div>
                    <button type="button" class="account fr">结算</button>
                </div>
                <div class="clearfix"></div>
            </form>
        </div>
    </div>

    <!-- 尾部-->
    <div class="footer">
        <div class="w">
            <div class="mod_help">
                <dl class="mod_help_item">
                    <dt>购物指南</dt>
                    <dd><a href="#">购物流程</a></dd>
                    <dd><a href="#">会员介绍</a></dd>
                    <dd><a href="#">常见问题</a></dd>
                </dl>
                <dl class="mod_help_item">
                    <dt>购物指南</dt>
                    <dd><a href="#">购物流程</a></dd>
                    <dd><a href="#">会员介绍</a></dd>
                    <dd><a href="#">常见问题</a></dd>
                </dl>
                <dl class="mod_help_item">
                    <dt>购物指南</dt>
                    <dd><a href="#">购物流程</a></dd>
                    <dd><a href="#">会员介绍</a></dd>
                    <dd><a href="#">常见问题</a></dd>
                </dl>
                <dl class="mod_help_item">
                    <dt>购物指南</dt>
                    <dd><a href="#">购物流程</a></dd>
                    <dd><a href="#">会员介绍</a></dd>
                    <dd><a href="#">常见问题</a></dd>
                </dl>
            </div>
            <div class="mod_copyright">
                <p class="mod_copyright_links">
                    关于我们  |  联系我们  |  联系客服  |  商家入驻  |  营销中心  |  手机购  |  友情链接  |  销售联盟  |  社区  |  公益  |  English Site  |  Contact U
                </p>
                <p class="mod_copyright_info">
                    地址：北京市昌平区建材城西路金燕龙办公楼一层 邮箱: zhanghj+itcast.cn <br>
                    京ICP备08001421号京公网安备110108007702
                </p>
            </div>
        </div>
    </div>
</body>
</html>